Integrand size = 29, antiderivative size = 332 \[ \int \cos ^4(c+d x) \sin (c+d x) \sqrt {a+b \sin (c+d x)} \, dx=-\frac {2 \cos ^5(c+d x) \sqrt {a+b \sin (c+d x)}}{11 d}+\frac {8 a \left (32 a^4-93 a^2 b^2+93 b^4\right ) E\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {a+b \sin (c+d x)}}{3465 b^5 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {8 \left (32 a^6-101 a^4 b^2+114 a^2 b^4-45 b^6\right ) \operatorname {EllipticF}\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right ),\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{3465 b^5 d \sqrt {a+b \sin (c+d x)}}-\frac {2 \cos ^3(c+d x) \sqrt {a+b \sin (c+d x)} \left (8 a^2-9 b^2-7 a b \sin (c+d x)\right )}{693 b^2 d}+\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (32 a^4-69 a^2 b^2+45 b^4-24 a b \left (a^2-2 b^2\right ) \sin (c+d x)\right )}{3465 b^4 d} \]
[Out]
Time = 0.48 (sec) , antiderivative size = 332, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.241, Rules used = {2941, 2944, 2831, 2742, 2740, 2734, 2732} \[ \int \cos ^4(c+d x) \sin (c+d x) \sqrt {a+b \sin (c+d x)} \, dx=-\frac {2 \cos ^3(c+d x) \sqrt {a+b \sin (c+d x)} \left (8 a^2-7 a b \sin (c+d x)-9 b^2\right )}{693 b^2 d}+\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (32 a^4-24 a b \left (a^2-2 b^2\right ) \sin (c+d x)-69 a^2 b^2+45 b^4\right )}{3465 b^4 d}+\frac {8 a \left (32 a^4-93 a^2 b^2+93 b^4\right ) \sqrt {a+b \sin (c+d x)} E\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{3465 b^5 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {8 \left (32 a^6-101 a^4 b^2+114 a^2 b^4-45 b^6\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}} \operatorname {EllipticF}\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right ),\frac {2 b}{a+b}\right )}{3465 b^5 d \sqrt {a+b \sin (c+d x)}}-\frac {2 \cos ^5(c+d x) \sqrt {a+b \sin (c+d x)}}{11 d} \]
[In]
[Out]
Rule 2732
Rule 2734
Rule 2740
Rule 2742
Rule 2831
Rule 2941
Rule 2944
Rubi steps \begin{align*} \text {integral}& = -\frac {2 \cos ^5(c+d x) \sqrt {a+b \sin (c+d x)}}{11 d}+\frac {2}{11} \int \frac {\cos ^4(c+d x) \left (\frac {b}{2}+\frac {1}{2} a \sin (c+d x)\right )}{\sqrt {a+b \sin (c+d x)}} \, dx \\ & = -\frac {2 \cos ^5(c+d x) \sqrt {a+b \sin (c+d x)}}{11 d}-\frac {2 \cos ^3(c+d x) \sqrt {a+b \sin (c+d x)} \left (8 a^2-9 b^2-7 a b \sin (c+d x)\right )}{693 b^2 d}+\frac {8 \int \frac {\cos ^2(c+d x) \left (-\frac {1}{4} b \left (a^2-9 b^2\right )-2 a \left (a^2-2 b^2\right ) \sin (c+d x)\right )}{\sqrt {a+b \sin (c+d x)}} \, dx}{231 b^2} \\ & = -\frac {2 \cos ^5(c+d x) \sqrt {a+b \sin (c+d x)}}{11 d}-\frac {2 \cos ^3(c+d x) \sqrt {a+b \sin (c+d x)} \left (8 a^2-9 b^2-7 a b \sin (c+d x)\right )}{693 b^2 d}+\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (32 a^4-69 a^2 b^2+45 b^4-24 a b \left (a^2-2 b^2\right ) \sin (c+d x)\right )}{3465 b^4 d}+\frac {32 \int \frac {\frac {1}{8} b \left (8 a^4-21 a^2 b^2+45 b^4\right )+\frac {1}{8} a \left (32 a^4-93 a^2 b^2+93 b^4\right ) \sin (c+d x)}{\sqrt {a+b \sin (c+d x)}} \, dx}{3465 b^4} \\ & = -\frac {2 \cos ^5(c+d x) \sqrt {a+b \sin (c+d x)}}{11 d}-\frac {2 \cos ^3(c+d x) \sqrt {a+b \sin (c+d x)} \left (8 a^2-9 b^2-7 a b \sin (c+d x)\right )}{693 b^2 d}+\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (32 a^4-69 a^2 b^2+45 b^4-24 a b \left (a^2-2 b^2\right ) \sin (c+d x)\right )}{3465 b^4 d}+\frac {\left (4 a \left (32 a^4-93 a^2 b^2+93 b^4\right )\right ) \int \sqrt {a+b \sin (c+d x)} \, dx}{3465 b^5}-\frac {\left (4 \left (32 a^6-101 a^4 b^2+114 a^2 b^4-45 b^6\right )\right ) \int \frac {1}{\sqrt {a+b \sin (c+d x)}} \, dx}{3465 b^5} \\ & = -\frac {2 \cos ^5(c+d x) \sqrt {a+b \sin (c+d x)}}{11 d}-\frac {2 \cos ^3(c+d x) \sqrt {a+b \sin (c+d x)} \left (8 a^2-9 b^2-7 a b \sin (c+d x)\right )}{693 b^2 d}+\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (32 a^4-69 a^2 b^2+45 b^4-24 a b \left (a^2-2 b^2\right ) \sin (c+d x)\right )}{3465 b^4 d}+\frac {\left (4 a \left (32 a^4-93 a^2 b^2+93 b^4\right ) \sqrt {a+b \sin (c+d x)}\right ) \int \sqrt {\frac {a}{a+b}+\frac {b \sin (c+d x)}{a+b}} \, dx}{3465 b^5 \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {\left (4 \left (32 a^6-101 a^4 b^2+114 a^2 b^4-45 b^6\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}\right ) \int \frac {1}{\sqrt {\frac {a}{a+b}+\frac {b \sin (c+d x)}{a+b}}} \, dx}{3465 b^5 \sqrt {a+b \sin (c+d x)}} \\ & = -\frac {2 \cos ^5(c+d x) \sqrt {a+b \sin (c+d x)}}{11 d}+\frac {8 a \left (32 a^4-93 a^2 b^2+93 b^4\right ) E\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {a+b \sin (c+d x)}}{3465 b^5 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {8 \left (32 a^6-101 a^4 b^2+114 a^2 b^4-45 b^6\right ) \operatorname {EllipticF}\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right ),\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{3465 b^5 d \sqrt {a+b \sin (c+d x)}}-\frac {2 \cos ^3(c+d x) \sqrt {a+b \sin (c+d x)} \left (8 a^2-9 b^2-7 a b \sin (c+d x)\right )}{693 b^2 d}+\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (32 a^4-69 a^2 b^2+45 b^4-24 a b \left (a^2-2 b^2\right ) \sin (c+d x)\right )}{3465 b^4 d} \\ \end{align*}
Time = 3.10 (sec) , antiderivative size = 326, normalized size of antiderivative = 0.98 \[ \int \cos ^4(c+d x) \sin (c+d x) \sqrt {a+b \sin (c+d x)} \, dx=\frac {-64 a \left (32 a^5+32 a^4 b-93 a^3 b^2-93 a^2 b^3+93 a b^4+93 b^5\right ) E\left (\frac {1}{4} (-2 c+\pi -2 d x)|\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}+64 \left (32 a^6-101 a^4 b^2+114 a^2 b^4-45 b^6\right ) \operatorname {EllipticF}\left (\frac {1}{4} (-2 c+\pi -2 d x),\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}+b \cos (c+d x) \left (1024 a^5-2912 a^3 b^2+748 a b^4+16 \left (4 a^3 b^2-183 a b^4\right ) \cos (2 (c+d x))-700 a b^4 \cos (4 (c+d x))+256 a^4 b \sin (c+d x)-692 a^2 b^3 \sin (c+d x)+990 b^5 \sin (c+d x)-20 a^2 b^3 \sin (3 (c+d x))-765 b^5 \sin (3 (c+d x))-315 b^5 \sin (5 (c+d x))\right )}{27720 b^5 d \sqrt {a+b \sin (c+d x)}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(1355\) vs. \(2(374)=748\).
Time = 2.10 (sec) , antiderivative size = 1356, normalized size of antiderivative = 4.08
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.14 (sec) , antiderivative size = 584, normalized size of antiderivative = 1.76 \[ \int \cos ^4(c+d x) \sin (c+d x) \sqrt {a+b \sin (c+d x)} \, dx=-\frac {2 \, {\left (2 \, \sqrt {2} {\left (64 \, a^{6} - 210 \, a^{4} b^{2} + 249 \, a^{2} b^{4} - 135 \, b^{6}\right )} \sqrt {i \, b} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 i \, a^{3} - 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) - 3 i \, b \sin \left (d x + c\right ) - 2 i \, a}{3 \, b}\right ) + 2 \, \sqrt {2} {\left (64 \, a^{6} - 210 \, a^{4} b^{2} + 249 \, a^{2} b^{4} - 135 \, b^{6}\right )} \sqrt {-i \, b} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (-8 i \, a^{3} + 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) + 3 i \, b \sin \left (d x + c\right ) + 2 i \, a}{3 \, b}\right ) + 6 \, \sqrt {2} {\left (32 i \, a^{5} b - 93 i \, a^{3} b^{3} + 93 i \, a b^{5}\right )} \sqrt {i \, b} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 i \, a^{3} - 9 i \, a b^{2}\right )}}{27 \, b^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 i \, a^{3} - 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) - 3 i \, b \sin \left (d x + c\right ) - 2 i \, a}{3 \, b}\right )\right ) + 6 \, \sqrt {2} {\left (-32 i \, a^{5} b + 93 i \, a^{3} b^{3} - 93 i \, a b^{5}\right )} \sqrt {-i \, b} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (-8 i \, a^{3} + 9 i \, a b^{2}\right )}}{27 \, b^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (-8 i \, a^{3} + 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) + 3 i \, b \sin \left (d x + c\right ) + 2 i \, a}{3 \, b}\right )\right ) + 3 \, {\left (315 \, b^{6} \cos \left (d x + c\right )^{5} + 5 \, {\left (8 \, a^{2} b^{4} - 9 \, b^{6}\right )} \cos \left (d x + c\right )^{3} - 2 \, {\left (32 \, a^{4} b^{2} - 69 \, a^{2} b^{4} + 45 \, b^{6}\right )} \cos \left (d x + c\right ) - {\left (35 \, a b^{5} \cos \left (d x + c\right )^{3} - 48 \, {\left (a^{3} b^{3} - 2 \, a b^{5}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )\right )} \sqrt {b \sin \left (d x + c\right ) + a}\right )}}{10395 \, b^{6} d} \]
[In]
[Out]
Timed out. \[ \int \cos ^4(c+d x) \sin (c+d x) \sqrt {a+b \sin (c+d x)} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \cos ^4(c+d x) \sin (c+d x) \sqrt {a+b \sin (c+d x)} \, dx=\int { \sqrt {b \sin \left (d x + c\right ) + a} \cos \left (d x + c\right )^{4} \sin \left (d x + c\right ) \,d x } \]
[In]
[Out]
\[ \int \cos ^4(c+d x) \sin (c+d x) \sqrt {a+b \sin (c+d x)} \, dx=\int { \sqrt {b \sin \left (d x + c\right ) + a} \cos \left (d x + c\right )^{4} \sin \left (d x + c\right ) \,d x } \]
[In]
[Out]
Timed out. \[ \int \cos ^4(c+d x) \sin (c+d x) \sqrt {a+b \sin (c+d x)} \, dx=\int {\cos \left (c+d\,x\right )}^4\,\sin \left (c+d\,x\right )\,\sqrt {a+b\,\sin \left (c+d\,x\right )} \,d x \]
[In]
[Out]